package com.biomatch.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.biomatch.domain.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper extends BaseMapper<UserInfo> {

    UserInfo loginByPassword(UserInfo userInfo);

    IPage<UserInfo> getUsersByPage(Page<UserInfo> page);

    UserInfo selectOneByName(String lgnnam);

    UserInfo selectOneNotCodeIsName(String usrcod, String lgnnam);


    long findCountByMap(Map<String, Object> params);

    List<UserInfo> getUserInfoListAndFingerPrint(Map<String, Object> params);

    void deleteUserAndRole(String usrcod);
}
